<%@ page contentType="text/html; charset=utf-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<c:if test="${notfound != null}">
	<div class="error_box">
		<spring:message code="notfound.producer" />
	</div>
</c:if>

<c:if test="${notfound == null}">
	<c:if test="${successfulMessage != null}">
		<div class="valid_box">
			<spring:message code="successful.updateproducer" />
		</div>
	</c:if>
	<form:form action="" method="post" cssClass="niceform"
		commandName="producer">
		<form:errors path="*" cssClass="error_box" element="div" />
		<fieldset>
			<dl>
				<dt>
					<label for="name"><spring:message code="producer" /></label>
				</dt>
				<dd>
					<form:input path="name" maxlength="250" size="54"
						cssStyle="width: 300px" />
				</dd>
			</dl>

			<dl>
				<dt>
					<label for="description"><spring:message code="description" /></label>
				</dt>
				<dd>
					<form:textarea path="description" maxlength="1000" size="54"
						rows="5" cols="30" cssStyle="width: 300px" />
				</dd>
			</dl>

			<form:hidden path="version" />
			<form:hidden path="id" />

			<dl class="submit">
				<dd>
					<input type="submit" name="submit" id="submit"
						value="<spring:message code="save" />" />
				</dd>
			</dl>
		</fieldset>
	</form:form>
</c:if>